<?php
namespace Lm\Models;
//该model废弃，使用common下的model，by qgz 20181220
class XHLmUseMR extends basicModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $iUMRId;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iMeetingRoom;




    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iDepId;

    /**
     *
     * @var string
     * @Column(type="string", length=50, nullable=true)
     */
    public $sApplyName;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tStartTime;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tEndTime;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $mContent;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $mOfficeIdea;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iState;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bDelete;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iLastModifyUserId;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        $this->setSource("XHLm_UseMR");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHLm_UseMR';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XHLmUseMR[]|XHLmUseMR|\Phalcon\Mvc\Model\ResultSetInterface
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XHLmUseMR|\Phalcon\Mvc\Model\ResultInterface
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
